<?php
    session_start();
    include 'config.php';
    $sql="select * from user where id=3";
    $rst=$mysqli->query($sql);
    $row=$rst->fetch_assoc();
    $_SESSION['home_userid']=$row['id'];

?>
    <div align="right">
        <a href="index.php">欢迎 <?php echo $row['username']?> 回家</a> |
        <a href="">离家出走</a> |
        <a href="">购物车</a>        
    </div>
    <hr>
